package plus.exp;

import plus.B;
import plus.run.Emit;

public class E_BoolConst extends Exp {

	final boolean value;

	public E_BoolConst(boolean value) {
		this.value = value;
		type = B._bool;
	}
	@Override
	public void threadScope() {
		// Nothing to do. (Type was set in the constructor.)
	}
	@Override String impliedName() { return null; }
	@Override String aThis() { return "a boolean constant"; }
	@Override
	public void compilePush() { Emit.bool(value); }
}
